package com.yingsheng.bi.hks.dto.goods;

import com.yingsheng.bi.hks.bo.spec.SpecItemBo;
import com.yingsheng.bi.hks.dto.HksTransReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 商品规格新增
 */
@ApiModel(value = "商品规格新增")
@EqualsAndHashCode(callSuper = true)
@Data
public class GoodsSpecAddReq extends HksTransReq {

    @ApiModelProperty(value = "商品ID", required = true)
    @NotBlank
    private String goodsId;

    @ApiModelProperty(value = "商品规格集合", required = true)
    private List<SpecItemBo> specs;
}
